Optimal. Leaf size=82 \[ -\frac{i \sqrt{2} \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{a} \sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d} \sqrt{a+i a \tan (e+f x)}}\right )}{f \sqrt{c-i d}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.111601, antiderivative size = 82, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.062, Rules used = {3544, 208} \[ -\frac{i \sqrt{2} \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{a} \sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d} \sqrt{a+i a \tan (e+f x)}}\right )}{f \sqrt{c-i d}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3544
Rule 208
Rubi steps
\begin{align*} \int \frac{\sqrt{a+i a \tan (e+f x)}}{\sqrt{c+d \tan (e+f x)}} \, dx &=-\frac{\left (2 i a^2\right ) \operatorname{Subst}\left (\int \frac{1}{a c-i a d-2 a^2 x^2} \, dx,x,\frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{a+i a \tan (e+f x)}}\right )}{f}\\ &=-\frac{i \sqrt{2} \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{a} \sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d} \sqrt{a+i a \tan (e+f x)}}\right )}{\sqrt{c-i d} f}\\ \end{align*}
Mathematica [A] time = 2.47423, size = 147, normalized size = 1.79 \[ -\frac{i e^{-i (e+f x)} \sqrt{1+e^{2 i (e+f x)}} \sqrt{a+i a \tan (e+f x)} \log \left (2 \left (\sqrt{c-i d} e^{i (e+f x)}+\sqrt{1+e^{2 i (e+f x)}} \sqrt{c-\frac{i d \left (-1+e^{2 i (e+f x)}\right )}{1+e^{2 i (e+f x)}}}\right )\right )}{f \sqrt{c-i d}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.115, size = 209, normalized size = 2.6 \begin{align*} -{\frac{ \left ( id\tan \left ( fx+e \right ) -ic+c\tan \left ( fx+e \right ) +d \right ) a\sqrt{2}}{2\,f \left ( -\tan \left ( fx+e \right ) +i \right ) \left ( ic-d \right ) }\ln \left ({\frac{1}{\tan \left ( fx+e \right ) +i} \left ( 3\,ac+ia\tan \left ( fx+e \right ) c-iad+3\,a\tan \left ( fx+e \right ) d+2\,\sqrt{2}\sqrt{-a \left ( id-c \right ) }\sqrt{a \left ( c+d\tan \left ( fx+e \right ) \right ) \left ( 1+i\tan \left ( fx+e \right ) \right ) } \right ) } \right ) \sqrt{c+d\tan \left ( fx+e \right ) }\sqrt{a \left ( 1+i\tan \left ( fx+e \right ) \right ) }{\frac{1}{\sqrt{-a \left ( id-c \right ) }}}{\frac{1}{\sqrt{a \left ( c+d\tan \left ( fx+e \right ) \right ) \left ( 1+i\tan \left ( fx+e \right ) \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.42481, size = 767, normalized size = 9.35 \begin{align*} \frac{1}{2} \, \sqrt{-\frac{2 i \, a}{{\left (i \, c + d\right )} f^{2}}} \log \left ({\left ({\left (i \, c + d\right )} f \sqrt{-\frac{2 i \, a}{{\left (i \, c + d\right )} f^{2}}} e^{\left (2 i \, f x + 2 i \, e\right )} + \sqrt{2} \sqrt{\frac{{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt{\frac{a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}{\left (e^{\left (2 i \, f x + 2 i \, e\right )} + 1\right )} e^{\left (i \, f x + i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}\right ) - \frac{1}{2} \, \sqrt{-\frac{2 i \, a}{{\left (i \, c + d\right )} f^{2}}} \log \left ({\left ({\left (-i \, c - d\right )} f \sqrt{-\frac{2 i \, a}{{\left (i \, c + d\right )} f^{2}}} e^{\left (2 i \, f x + 2 i \, e\right )} + \sqrt{2} \sqrt{\frac{{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt{\frac{a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}{\left (e^{\left (2 i \, f x + 2 i \, e\right )} + 1\right )} e^{\left (i \, f x + i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a \left (i \tan{\left (e + f x \right )} + 1\right )}}{\sqrt{c + d \tan{\left (e + f x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]